package interfaces;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JButton;

public class AnswerButton extends JButton //a class to describe button pressed to answer
{
 public AnswerButton()
 {
  super();
  this.setBackground(Color.white);
  this.setFont(new Font("serif",Font.PLAIN,18));
 }
 public void setFalseAnswer()
 {
  this.setBackground(Color.red); 	 
 }
 public void setTrueAnswer()
 {
  this.setBackground(Color.green); 	 
 }
 public void reset()
 {
  this.setBackground(Color.white);	 
 }
}
